<rich:page xmlns="http://www.w3.org/1999/xhtml"
    xmlns:ui="http://java.sun.com/jsf/facelets"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:rich="http://richfaces.org/rich"
    xmlns:c="http://java.sun.com/jstl/core"
    xmlns:a4j="http://richfaces.org/a4j" markupType="xhtml"
    contentType="text/html" theme="simple" pageTitle="Bharat Seva Sangha - WebManager [1.0]"
    width="1024" sidebarWidth="200" bodyClass="bClass"
    sidebarPosition="left"  >
    
    <f:facet name="pageHeader">	   			
		<ui:include src="pageHeader.xhtml"/>
   </f:facet>
        
    <f:facet name="sidebar">
    	<h:panelGroup style="height:100%" rendered="true">
	    	<ui:include src="dailyItems.xhtml"/>
	    	<ui:insert name="leftSectionData" />
    	</h:panelGroup>
    </f:facet>
   
    <f:facet name="header">
    	<h:panelGroup>            
            <ui:include src="header.xhtml"/>
        </h:panelGroup>		        
    </f:facet>    
	
    <table align="center">
			<tr>
				<td>
					<div id="page">
						<table width="100%" class="headerSection" >							
							<tr>
								<td valign="top"><ui:include src="menu.xhtml" /></td>
							</tr>
						</table>
						<table class="contentRootSection" cellpadding="0" cellspacing="0">
							<tr>								
								<td width="80%" valign="top" class="contentSection">
									<rich:panel style="width:100%;border:0px;text-align:left;">
										<table width="100%" align="center" style="text-align: center; table-layout: fixed" class="norender">
											<tr>
												<td>
													<ui:insert name="formheader" />
												</td>
											</tr>
											<tr>
												<td>
													<ui:insert name="formGlobal" />
												</td>
											</tr>
											<tr>
												<td>
													<a4j:status forceId="true" id="globalProgress" >
														 <f:facet name="start">
											                  <h:graphicImage value="/images/progress2.gif"/>
											             </f:facet>
													</a4j:status>
												</td>
											</tr>
										</table>
										
										<f:view locale="#{request.locale}"  >
											<ui:insert name="content" />
										</f:view>
										
										
										
									</rich:panel>
								</td>
							</tr>
						</table>
					</div>	
				</td>
			</tr>
		</table>			
    
    <f:facet name="footer"  >
        <h:outputText styleClass="noprint"
            value="Copyright (c) 2013 Bharat Sevaashram Sangha. All rights reserved." />
    </f:facet>
    
    <rich:modalPanel id="loadingWindow" autosized="true" zindex="2000">
		<h:outputText value="Loading..."/>
		<rich:spacer height="10px"/>
		<h:graphicImage value="/images/progress2.gif"/>  		      					
	</rich:modalPanel>
</rich:page>


